package com.taotao.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fasterxml.jackson.core.type.TypeReference;
import com.taotao.common.service.HttpClientService;
import com.taotao.web.vo.User;
@Service
public class UserService {
	
	@Autowired
	private HttpClientService httpClientService;

	public User queryByToken(String token) {
		return httpClientService.doGet("http://sso.taotao.com/user/query/" + token + ".html", new TypeReference<User>() {
		});
		
		
		
	}
	
	
}
